//
//  ProblemBackViewController.m
//  Utils
//
//  Created by enghou on 2018/4/17.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "ProblemBackViewController.h"

@interface ProblemBackViewController ()

@end

@implementation ProblemBackViewController

- (IBAction)showFilePicker:(id)sender {
    [super showFilePicker:sender];
}

-(NSString *)typeId{
    return @"90";
}

-(NSDictionary *)param{
    if (self.type == 0) {
        if ([self.textView.text length] == 0) {
            [self alertSome:@"请输入回退意见!"];
            return nil;
        }
        return @{@"logNew.content":self.suggestionField.text,@"issueStepId":self.stepId};
    }else{
        if ([self.textView.text length] == 0) {
            [self alertSome:@"请输入回退意见!"];
            return nil;
        }
        return @{@"content":self.textView.text,@"stepRecordId":self.stepId,@"appealId":self.eventId,@"operationCode":@"2030"};
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
